package com.jeecg.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jeecg.annoction.Controller;
import com.jeecg.annoction.RequestMapping;
import com.jeecg.pojo.LoginBean;
import com.jeecg.pojo.RegisterBean;
import com.jeecg.utils.FullBeansUtils;

@Controller
public class RegisterController {
	
	
	
	@RequestMapping("/register")
	public String register(HttpServletRequest request,HttpServletResponse response ,RegisterBean registerBean){
		
		registerBean =	(RegisterBean) FullBeansUtils.setValue(request, registerBean.getClass().getName());
		
		request.setAttribute("registerBean", registerBean);
		
		return "register";
	}
}
